package com.blb.ssh.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.blb.ssh.dao.MenuDao;
import com.blb.ssh.entity.Menu;
import com.blb.ssh.service.MenuService;

public class MenuServiceImpl implements MenuService {

	private MenuDao menuDao;
	
	
	public MenuDao getMenuDao() {
		return menuDao;
	}

	public void setMenuDao(MenuDao menuDao) {
		this.menuDao = menuDao;
	}
	
	
	
	@Override
	public List<Menu> getMenuDataByRoleId(int roleId) {
		return menuDao.getMenuDataByRoleId(roleId);
	}

	@Override
	public List<Menu> getMenuDataByPid(int i) {
		return menuDao.getMenuDataByPid(i);
	}
	

	
	@Override
	public List<Menu> getMenuAll(int page,int rows){
		return menuDao.getMenuAll(page,rows);
	}

	@Override
	public boolean addMenu(Menu menu) {
		return menuDao.addMenu(menu);
	}


	@Override
	public boolean batchDeleteMenu(String menuIds) {
		return menuDao.batchDeleteMenu(menuIds);
	}

	@Override
	public Long getMenuCount() {
		return menuDao.getMenuCount();
	}

	@Override
	public boolean editMenu(Menu menu) {
		return menuDao.editMenu(menu);
	}

	@Override
	public List<Menu> getMenuPidAll() {
		List<Menu> list = new ArrayList<Menu>();
		for(Menu m : menuDao.getMenuPidAll())
		{
			
		}
		return menuDao.getMenuPidAll();
	}

	@Override
	public List<Menu> selectAllmenuTypeList() {
		return menuDao.selectAllmenuTypeList();
	}
	
	




	


}
